this.emit('drag-begin');
},
+ _getWorkspaceActor : function() {
+ let index = this.metaWindow.get_workspace().index();
+ return Main.overview.workspaces.getWorkspaceByIndex(index);
+ },
+
+ handleDragOver : function(source, actor, x, y, time) {
+ let workspace = this._getWorkspaceActor();
+ return workspace.handleDragOver(source, actor, x, y, time);
+ },
+
+ acceptDrop : function(source, actor, x, y, time) {
+ let workspace = this._getWorkspaceActor();
+ workspace.acceptDrop(source, actor, x, y, time);
+ },
+
_onDragCancelled : function (draggable, time) {
this.emit('drag-cancelled');
},
return this._workspaces[active];
},
+ getWorkspaceByIndex: function(index) {
+ return this._workspaces[index];
+ },
+
hide: function() {
let activeWorkspaceIndex = global.screen.get_active_workspace_index();
let activeWorkspace = this._workspaces[activeWorkspaceIndex];